package com.pubinfo.passbook.common.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @TableName t_rule_genus
 */
@TableName(value = "t_rule_genus")
@Data
@NoArgsConstructor
@ApiModel(value = "TRuleGenus", description = "供属关系表")
public class TRuleGenus implements Serializable {
  /**
   *
   */
  @TableId(type = IdType.ASSIGN_UUID, value = "id")
  private String id;
  
  /**
   * 区县id
   */
  @ApiModelProperty("区县id")
  private String cityId;
  
  /**
   * 所在部门
   */
  @ApiModelProperty("所在部门")
  private String department;
  
  /**
   * t_rabbitmq_persion表id
   */
  @ApiModelProperty("t_rabbitmq_persion表id")
  private String acct;
  
  /**
   * 关系
   */
  @ApiModelProperty("关系")
  private String relationship;
  
  /**
   * 供属姓名
   */
  @ApiModelProperty("供属姓名")
  private String genusName;
  
  @ApiModelProperty("供属编码")
  private String genusCode;
  
  @ApiModelProperty("供属身份证号")
  private String idNo;
  /**
   * 员工姓名
   */
  @ApiModelProperty("员工姓名")
  private String employeeName;
  
  /**
   * 性别(0:男,1女)
   */
  @ApiModelProperty("性别(0:男,1女)")
  private Boolean gender;
  
  /**
   * 出生日期
   */
  @ApiModelProperty("出生日期")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date birth;
  
  /**
   * 创建时间
   */
  @TableField(fill = FieldFill.INSERT)
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date createTime;
  
  @TableField(fill = FieldFill.INSERT_UPDATE)
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date updateTime;
  
  @TableField(exist = false)
  private static final long serialVersionUID = 1L;
}